package com.perfma.xtest.tool;

import org.apache.commons.compress.utils.Lists;

import java.util.List;

/**
 * @author: junhui.si
 * @date: 2021-01-26 13:51
 **/
public class ValueDemo {
    public static void main(String[] args) {
//        List<String> list = Lists.newArrayList();
//        handle(list);
//        System.out.println(list);

String originalFileName = "sasd.jmx";
        System.out.println(originalFileName.lastIndexOf(".") > 0 ? originalFileName.substring(0, originalFileName.lastIndexOf(".") ) : null);
    }

    private static void handle(List<String> list) {
        List<String> list1 = Lists.newArrayList();
        list.add("1");
        list.addAll(list1);
    }
}
